﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Windows.Forms;

namespace Fitts__law_experiment_with_a_wiimote
{
    class ExperimentContext : ApplicationContext
    {
        public ExperimentContext(Boolean showIntroduction) : base()
        {
			ExperimentViewer vwr = new ExperimentViewer();
			vwr.Show();
			return;
            if (showIntroduction)
                showIntroductionForm();
            else
                showExperimentForm();
        }

        private void showIntroductionForm()
        {
            IntroductionForm form = new IntroductionForm();
			try
			{
				form.Show();
			}
			catch (Exception ex)
			{
				MessageBox.Show(ex.Message);
				Application.Exit();
			}
        }

        private void showExperimentForm()
        {
			ExperimentForm form = new ExperimentForm();
			form.Show();
        }

		private void startExperiment()
		{

		}
    }
}
